﻿using Shinkansen.Web.UI.WebControls;

namespace Shinkansen.Mvc
{
    public class ImageReference : IStaticInclude
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="ImageReference"/> class.
        /// </summary>
        public ImageReference ()
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="ImageReference"/> class.
        /// </summary>
        /// <param name="path">The path.</param>
        /// <param name="altText">The alt text.</param>
        public ImageReference (string path, string altText)
        {
            Path = path;
            AltText = altText;
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="ImageReference"/> class.
        /// </summary>
        /// <param name="path">The path.</param>
        /// <param name="altText">The alt text.</param>
        /// <param name="htmlAttributes">The HTML attributes.</param>
        public ImageReference (string path, string altText, object htmlAttributes)
        {
            Path = path;
            AltText = altText;
            HtmlAttributes = htmlAttributes;
        }

        /// <summary>
        /// Gets or sets the path.
        /// </summary>
        /// <value>The path.</value>
        public string Path { get; set; }

        /// <summary>
        /// Gets or sets the alt text.
        /// </summary>
        /// <value>The alt text.</value>
        public string AltText { get; set; }

        /// <summary>
        /// Gets or sets the HTML attributes.
        /// </summary>
        /// <value>The HTML attributes.</value>
        public object HtmlAttributes { get; set; }
    }
}
